﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Entities;

/// <summary>
/// Summary description for CategoryData
/// </summary>
public class CategoryData
{
    ShoppingCartDataContext ctx;
    public CategoryData()
    {
        ctx = new ShoppingCartDataContext();
    }

    public IEnumerable<Category> AllCategory()
    {
        return ctx.Categories;
    }
}